package com.wyk.controller;

import com.netflix.discovery.converters.Auto;
import com.wyk.service.MessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WangYuKai
 * @Date 2022/7/17
 * @apiNote
 */
@RestController
public class SendMessageController {
    //注入业务层
    @Autowired
    private MessageProvider provider;

    //调用接口
    @GetMapping("/sendMessage")
    public String SendMessage(){
        return provider.send();
    }
}
